package com.atguigu.yygh.cmn.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-cmn")
public interface DictFeignClient {
    /**
     * @description: 根据dictcode和value进行查询
     * @author 化一帆
     * @date 2022/11/29 14:23
     */
    @GetMapping("/admin/cmn/dict/getName/{dictCode}/{value}")
    public String getName(@PathVariable("dictCode") String dictCode
            , @PathVariable("value")String value);

    /**
     * @description: 根据value进行查询
     * @author 化一帆
     * @date 2022/11/29 14:27
     */
    @GetMapping("/admin/cmn/dict/getName/{value}")
    public String getName(@PathVariable("value") String value);
}
